<!DOCTYPE html>
<html>
<head>{{template "header.html" .}}</head>
<body>
	{{template "navbar.html" .}}
	<div id="wrap" class="container">
		{{template "flash.html" .}}
		<form class="form-horizontal" role="form"
			action='{{url "Blog.Save"  }}' method="post">
			 
			<input type="hidden" class="form-control" name="blog.Id" 
						value="{{id2String .blog.Id}}"  >
		 
			 
			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">Titile</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" name="blog.Title"
						  placeholder="Title"  value="{{.blog.Title}}"></div>
			</div>
			   
			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">关键字</label>
				<div class="col-sm-10">
					<input type="text" class="form-control"  
						name="blog.KeyWords" placeholder="关键字" value="{{.blog.KeyWords}}"></div>
			</div>
			 
			<div class="form-group">

				<div class="col-sm-6 wmd-panel pull-left">

					<div id="wmd-button-bar"></div>
					<textarea class="form-control wmd-input" rows="20" id="wmd-input"
						  name="blog.Content">{{.blog.Content}}</textarea>
				</div>
				<div class="col-sm-6 wmd-panel wmd-preview pull-right"
					id="wmd-preview"></div>

			</div>
		 
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">更新</button>
				</div>
			</div>

		</form>
	</div>
	{{template "footer.html" .}}
</body>
</html>
